#ifndef INPUT_H
#define INPUT_H

#include <SDL.h>
#include <map>

class Input
{
public:
	void BeginFrame();
	void KeyUpEvent(const SDL_Event &Event);
	void KeyDownEvent(const SDL_Event &Event);
	bool WasKeyPressed(SDL_Scancode Key);
	bool WasKeyReleased(SDL_Scancode Key);
	bool IsKeyHeld(SDL_Scancode Key);
private:
	std::map<SDL_Scancode, bool> HeldKeys;	
	std::map<SDL_Scancode, bool> PressedKeys;
	std::map<SDL_Scancode, bool> ReleasedKeys;
};

#endif